package com.ftg.learn.assess.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("evaluation")
@Schema(description = "评价实体类")
public class Assess {
    @TableId(type = IdType.AUTO)
    @Schema(description = "主键")
    Long evaluationId;

    @TableField("order_id")
    @Schema(description = "订单id")
    Long OrderId;

    @TableField("user_id")
    @Schema(description = "用户id")
    Long userId;

    @TableField("product_id")
    @Schema(description = "商品id")
    Long productId;

    @TableField("content")
    @Schema(description = "评价内容")
    String content;

    @TableField("rating")
    @Schema(description = "评分")
    Integer rating;

    @TableField("create_time")
    @Schema(description = "创建时间")
    LocalDateTime createTime;

    @TableField("is_anonymous")
    @Schema(description = "是否匿名")
    Integer isAnonymous;

    @TableField("status")
    @Schema(description = "状态")
    Integer status;

    @TableField("hide_reason")
    @Schema(description = "隐藏原因")
    String hideReason;
}
